@extends('../manage.layout')
@section('content')
    <!-- Content Header (Page header) -->
    <section class="content-header">
        <h1>
            文章分类管理
            <small>添加文章分类</small>
        </h1>
        <ol class="breadcrumb">
            <li><a href="/manage"><i class="fa fa-dashboard"></i>首页</a></li>
            <li class="active">添加文章分类</li>
        </ol>
    </section>
    <!-- Main content -->
    <section class="content animated fadeInRight">
        <div class="row">
            <div class="col-md-12">
                <!-- general form elements -->
                <div class="box-body table-responsive no-padding">
                    <div class="box box-primary">
                    <!-- /.box-header -->
                        <!-- form start -->
                        <form method="post" action="{{ url('manage/service_category/store')}}" style="max-width: 800px">
                            {{ csrf_field() }}
                            <div class="box-body">
                                <input type="hidden" name="user_id" id="user_id" value="{{ session('user.id') }}">
                                <div class="form-group">
                                    <label for="name">分类名称</label>
                                    <input type="text" class="form-control" id="name" name="name" value="" required="required" placeholder="请输入名称">
                                </div>
                                <div class="form-group">
                                    <label for="rank">权重</label>
                                    <input type="number" class="form-control" id="rank" name="rank" value="0" min="0">
                                </div>
                            </div>
                            <!-- /.box-body -->
                            <div class="box-footer">
                                <button type="submit" class="btn btn-primary">确定</button>&nbsp;&nbsp;<span class="btn btn-primary" onclick="window.location.href='/manage/service_category'">返回</span>
                            </div>
                        </form>
                    </div>
                </div>
            </div>
        </div>
    </section>
    <!-- /.content -->
@endsection
@section('script')
@endsection